//
//  BrowserViewControl.m
//  iCodeMac
//
//  Created by Andrew Barry on 1/08/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

#import "BrowserViewControl.h"


@implementation BrowserViewControl

-(NSArray *) getEvents {
	return [NSArray arrayWithObjects:@"RowCount", @"Row", @"SelectionChanged", @"DoubleClick", nil];
}

-(NSView *) load: (NSDictionary *) defn withFrame: (NSRect) frame {
	NSBrowser *vw = [[NSBrowser alloc] initWithFrame:frame];
	[vw setTitled:NO];

	return vw;
}

-(id) valueForProperty: (NSString *) name {
	return [super valueForProperty: name];
}

-(void) setValue: (id) val forProperty:(NSString*) name {
	[super setValue: val forProperty: name];
}

-(void) saveFields: (NSMutableDictionary *) content {
	[super saveFields: content];
}

-(void) postLoad {
	[super postLoad];
}

-(NSString *) propsNibName {
	return @"ViewProps";
}

@end
